//
//  HomeEmptyView.swift
//  imprint
//
//  Created by 小柠檬🍋 on 2025/2/3.
//

import SwiftUI

struct HomeEmptyView: View {
    var text1:String
    var text2:String? = nil
    var body: some View {
        VStack(spacing: 20) {
            Text(text1).font(.system(size: 14))
                .foregroundStyle(.bgNormalText)
                .multilineTextAlignment(.center)
            if text2?.isEmpty == false {
                Text(text2 ?? "").font(.system(size: 12))
                    .foregroundStyle(.bgNormalText3)
                    .multilineTextAlignment(.center)
            }
        }.padding(.horizontal, 20)
      
    }
}

#Preview {
    HomeEmptyView(text1:"您当天还没有写日记哦", text2: "每一天都是新的开始，让我们用文字记录这份美好")
}
